SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 60120: The SURVEYMEANS procedure might produce incorrect domain quantiles when there is an empty domain

DetailsCodeAboutRate It

When the following conditions are met in PROC SURVEYMEANS:

  • quantiles are requested
  • a DOMAIN statement is specified
  • a domain level is empty

the quantiles and standard errors are incorrect from the empty domain through the last row in the Domain Quantiles table. An output data set generated from the DomainQuantiles ODS table is similarly affected.

Quantiles are requested when any of the following options are specified in the PROC SURVEYMEANS statement:

  • PERCENTILE=
  • QUANTILE=
  • DECILES
  • MEDIAN
  • Q1
  • Q3
  • QUARTILES

You can detect an empty domain by specifying the NOBS option in the PROC SURVEYMEANS statement and checking the Domain Statistics table. A value of N=0  indicates an empty domain.

To circumvent the problem, create a new domain variable using a custom format  that places the empty domain in the last sorted order. Click the Full Code tab for an example.

 



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS/STATz/OS13.114.39.4 TS1M19.4 TS1M5
Microsoft® Windows® for x6413.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8 Enterprise 32-bit13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8 Enterprise x6413.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8 Pro 32-bit13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8 Pro x6413.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8.1 Enterprise 32-bit13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8.1 Enterprise x6413.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8.1 Pro 32-bit13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 8.1 Pro x6413.114.39.4 TS1M19.4 TS1M5
Microsoft Windows 1013.114.39.4 TS1M19.4 TS1M5
Microsoft Windows Server 200813.19.4 TS1M1
Microsoft Windows Server 2008 R213.19.4 TS1M1
Microsoft Windows Server 2008 for x6413.19.4 TS1M1
Microsoft Windows Server 2012 Datacenter13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows Server 2012 R2 Datacenter13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows Server 2012 R2 Std13.114.39.4 TS1M19.4 TS1M5
Microsoft Windows Server 2012 Std13.114.39.4 TS1M19.4 TS1M5
Windows 7 Enterprise 32 bit13.114.39.4 TS1M19.4 TS1M5
Windows 7 Enterprise x6413.114.39.4 TS1M19.4 TS1M5
Windows 7 Home Premium 32 bit13.114.39.4 TS1M19.4 TS1M5
Windows 7 Home Premium x6413.114.39.4 TS1M19.4 TS1M5
Windows 7 Professional 32 bit13.114.39.4 TS1M19.4 TS1M5
Windows 7 Professional x6413.114.39.4 TS1M19.4 TS1M5
Windows 7 Ultimate 32 bit13.114.39.4 TS1M19.4 TS1M5
Windows 7 Ultimate x6413.114.39.4 TS1M19.4 TS1M5
64-bit Enabled AIX13.114.39.4 TS1M19.4 TS1M5
64-bit Enabled Solaris13.114.39.4 TS1M19.4 TS1M5
HP-UX IPF13.114.39.4 TS1M19.4 TS1M5
Linux for x6413.114.39.4 TS1M19.4 TS1M5
Solaris for x6413.114.39.4 TS1M19.4 TS1M5
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.